package com.jicheng.service.impl;

import com.jicheng.dto.logs.LogsDetailDto;
import com.jicheng.dto.logs.LogsDto;
import com.jicheng.mapper.LogsMapper;
import com.jicheng.mapper.SysLogMapper;
import com.jicheng.service.LogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: LogsServiceImpl
 * @Description: TODO
 * @author: khz
 * @date: 2020年09月21日 10:13
 */
@Service
public class LogsServiceImpl implements LogsService {
    @Autowired
    LogsMapper logsMapper;
    @Autowired
    SysLogMapper sysLogMapper;

    @Override
    public List<LogsDto> getLog(String username, String startTime, String endTime) {
        List<LogsDto> list = logsMapper.getLog(username, startTime, endTime);
        return list;
    }

    @Override
    public List<LogsDetailDto> getLogDetali(String operationId, String startTime, String endTime) {
        List<LogsDetailDto> list = logsMapper.getLogDetali(operationId, startTime, endTime);
        return list;
    }

    @Override
    public List<LogsDto> getSysLog(String username, String startTime, String endTime) {
        return sysLogMapper.getSysLog(username, startTime, endTime);
    }

    @Override
    public List<LogsDetailDto> getSysLogDetali(String token, String startTime, String endTime) {
        return sysLogMapper.getSysLogDetali(token, startTime, endTime);
    }
}
